package com.example.web.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;

/**
 * @program: springsecurity-study
 * @description: 用户实体类
 * @author: ChenZhiXiang
 * @create: 2019-07-25 22:17
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Alias("user")
@TableName("sys_user")
public class User extends BaseEntity implements Serializable {
    @TableId("user_id")
    private Integer id;

    private String username;

    private String password;

    private String sex;

    private String phone;

    private String email;

    private String idCard;

    private Date birthday;

    private boolean isLocked;

    private boolean isNoExpired;

}
